<template>
  <div class="common-btn flex-row-center" @click="$emit('click')" :style="{backgroundColor:bgColor,color: color}">
    <slot>

    </slot>
  </div>
</template>

<script>
export default {
  name: "CommonButton",
  props:{
    bgColor:{
      type:String,
      default:"gold"
    },
    color:{
      type:String,
      default: "#4d4d4d"
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped lang="less">
  .common-btn{
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
    font-weight: 550;
    border-radius: 3px;
    &:hover{
      filter: brightness(1.05);

    }
  }
</style>